import urllib2

file = "../examples/wms.rdf"
upload = "http://127.0.0.1:8000/duetopia/register/dataset/import/wms/"
data = open(file).read()    
request = urllib2.Request(upload, data)
fp = urllib2.urlopen(request)
response = fp.read()
fp.close()
if response:
    print response

